"bob and john" (bobandjohn)
01/29/2015 at 20:01 • Filed to: None | 2 | 5 |
getting the hang on this coding thing. only rtook me 20 minutes to go tonight's assignment
feeling much better about this class then I did last year
Dwhite - Powered by Caffeine, Daft Punk, and Corgis
> bob and john
01/29/2015 at 20:09 | 0 |
Yeah I'm learning VB right now and it took me like 2 weeks to really get my bearings. Once I did I started to blow through what I needed to do, but the first two weeks were rough.
bob and john
> Dwhite - Powered by Caffeine, Daft Punk, and Corgis
01/29/2015 at 20:12 | 0 |
ytea. I had issues understanding exactly what int main (void) did (i still dont if i'm honest) but oteher then that, I get the rest of it.
BaconSandwich is tasty.
> bob and john
01/30/2015 at 00:48 | 0 |
int main (void) is the entry point of the application. I'm guessing you guys haven't talked about functions yet?
bob and john
> BaconSandwich is tasty.
01/30/2015 at 01:08 | 0 |
not yet no.
BaconSandwich is tasty.
> bob and john
01/30/2015 at 10:29 | 0 |
The "int main (void) {.....}" is where the operating system starts loading your program. The int means that your program can return a number. Usually a program will return 0 if it has successfully completed, and a non-zero value if something has gone wrong. The (void) means we aren't passing in anything to your program. Eventually you'll learn how you to pass arguments in to a program. A lot of the classic DOS and linux commands are really just tiny programs that take some sort of input and do something with it.